interface Animal {
 void soundOff();
}

 class Elephant implements Animal 
 {
	 public void soundOff() 
	 {
		 System.out.println("Trumpet");
	 }
 }

 class Lion implements Animal 
 {
	 public void soundOff() 
	 {
		 System.out.println("Roar");
	 }
 }

 class Alpha1 
 {
	 static Animal get( String choice ) 
	 {
		 if(choice.equalsIgnoreCase("meat eater")) 
		 {
			 return new Lion();
		 }else{
			 return new Elephant();
		 }
	 }
 }
 
public class animalTest {

	public static void main(String[] args)
	{
		new Alpha1().get("veggie").soundOff();
	}
	
}
